Skip to main content

Retrieve Performance Metrics Information Based on Widget ID

GET 

/query/visualization/:id

Call this API to retrieve the Key Performance Indicators (KPIs) for a specific widget. The 'id' parameter must be provided to specify the widget of a dashboard for which you want to retrieve the KPIs. The metrics details returned will be based on the timeline selected in the widget. You can also fetch historical data by selecting the appropriate timeline in the widget from the UI, enabling a detailed analysis over different periods. This endpoint can only be used to retrieve performance metrics for the following widget types: Chart (Available for Metric, Availability, and Alert data types), Grid, Stream, and Active Alert.

Request

Path Parameters

    id integerrequired

    Unique identifier for the widget. This widget ID is required to fetch the corresponding performance metrics and their values from the widgets.

Query Parameters

    discard.dummy.rows string

    Indicates whether to discard rows with dummy values in the performance metrics. The default value is `yes'. You can leave this unchanged.

Responses

Successful response. The request was successful, and the performance metrics for the specified widget ID were returned. The response schema will vary depending on the type of counter (Scalar or Instance).

Schema
    oneOf
    response-code integer
    status string
    result object[]
  • Array [
  • monitor string
    system.cpu.percent^max integer
  • ]
Loading...